package cn.zymall.goods.service;

import cn.zymall.common.model.Collect;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author lxh
 * @Description 收藏业务层
 * @date 2020/8/27 20:49
 * @Classname CollectService
 **/

public interface CollectService extends IService<Collect> {
	/**
	 *收藏商品
	 * @param collect
	 * @return
	 */
	public void addMyCollect(Collect collect);


	/**
	 * 取消收藏
	 * @param collect
	 */
	public void deleteMyCollect(Collect collect);
	/**
	 * 判断是否收藏了此商品
	 * @param collect
	 * @return
	 */
	public Integer getCollectCount(Collect collect);
}
